import requests

url = 'https://httpbin.org/post'
files = {
    'file': ('logo.png', open(r'./file/logo.png', 'rb'), 'image/png')
}

response = requests.post(url=url, files=files)
print(response.text)



